package com.jhy.gateway;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;


@EnableDiscoveryClient //网关项目也要注册到Nacos，以便发现其他服务
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class}) //网关不需要数据源，而mybatis-plus自动注入数据源。需要去掉
public class GatewayApplication {

    public static void main(String[] args) {
        SpringApplication.run(GatewayApplication.class, args);
    }

}
